package top.zhan.builder;

/**
 * 具体建造者，实现Builder来创建不同的产品
 * @author Zhan
 * @date 2022/9/27 22:52
 */
public class HignComputerBuilder implements ComputerBuilder{

    private Computer computer = new Computer();

    @Override
    public void builderCpu() {
        computer.setCpu("高配 CPU");
    }

    @Override
    public void builderMainBoard() {
        computer.setMainBoard("高配 主板");
    }

    @Override
    public void builderDisk() {
        computer.setDisk("高配 磁盘");
    }

    @Override
    public void builderPower() {
        computer.setPower("高配 电源");
    }

    @Override
    public void builderMemory() {
        computer.setMemory("高配 内存");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
